package com.cynthia.system.mapper;

import com.cynthia.system.model.SysUserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;

/**
 * <p>
 * 用户角色表 Mapper 接口
 * </p>
 *
 * @author cynthia
 * @since 2021-12-15
 */
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {

    @Delete("delete from sys_user_role where user_id=#{userId}")
    boolean deleteSysUserRoleByUserId(int userId);
}
